Skip to content

Adapt for recent PHPStan #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2025
Merged

Adapt for recent PHPStan #650

merged 1 commit into from
Mar 24, 2025

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Mar 24, 2025

The switch improvements in https://github.com/phpstan/phpstan/releases/tag/2.1.10 caused to detect PHPStan dead code here

@ondrejmirtes
Copy link
Member

This phpstan/phpstan-src#3900 was merged into 1.12.x so there should be a PR here for 1.5.x which I will merge into 2.0.x. I believe the build fails there too.

@herndlm herndlm changed the base branch from 2.0.x to 1.5.x March 24, 2025 10:34
@herndlm
Copy link
Contributor Author

herndlm commented Mar 24, 2025

ok, adapted for 1.5.x / PHPStan 1.12.23. looks like you have to fix the conflict in composer.json by requiring PHPStan ^2.1.10 when merging up then

@ondrejmirtes
Copy link
Member

Yeah, that's expected.

@ondrejmirtes ondrejmirtes merged commit 4a0d9cb into phpstan:1.5.x Mar 24, 2025
34 of 44 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@herndlm herndlm deleted the phpstan-fix branch March 24, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants